import { createStore } from 'vuex'


const store = createStore({
	state() {
		return {
      userInfo: false
    }
	},
	mutations: {
		storeLogin(state) {
			state.userInfo = true
		}
	},
  actions:{
    changeAction(context,num){//触发mutations中的方法
      context.commit('storeLogin')
    }
  }
})
export default store
